package com.rk.cmn.client;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author :Rk.
 * @date : 2022/11/15
 */
@Component
@FeignClient("service-cmn")
public interface DictFeignClient {

    @ApiOperation(value = "获取字典名称")
    @GetMapping("/admin/cmn/dict/getName/{parentDictCode}/{value}")
    public String  getName(@PathVariable("parentDictCode") String parentDictCode,
                           @PathVariable("value") String value);


    @ApiOperation(value = "获取字典名称")
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String  getName(@PathVariable("value") String value);
}
